﻿using ZFramework.Runtime;

namespace ZGame
{
    public class ProcedureSplash : ProcedureBase
    {
        public override void OnEnter(Fsm<IProcedureManager> procedureOwner)
        {
            base.OnEnter(procedureOwner);
            //播放splash过长动画
            if (AOTGameEntry.baseMgr.PlayMode == BaseMgr.EResourceMode.EditorSimulateMode)
            {
                //编辑器下的模拟模式
                ChangeState<ProcedureLoadAssembly>(procedureOwner);
            }
            else if (AOTGameEntry.baseMgr.PlayMode == BaseMgr.EResourceMode.OfflinePlayMode)
            {
                //离线运行模式
                ChangeState<ProcedureLoadAssembly>(procedureOwner);
            }
            else
            {
                //联机运行模式
            }
        }
    }
}